package extensions
{
	import mx.controls.treeClasses.TreeItemRenderer;
	import mx.controls.treeClasses.TreeListData;
	
	public class StateTreeItemRenderer extends TreeItemRenderer
	{
		public function StateTreeItemRenderer()
		{
			super();
		}
		
		override public function set data(value:Object):void {
			super.data = value;
			if( XML(value).@fresh.toString() == "true")
			{
				setStyle("color", 0x00FF00);
				setStyle("fontStyle", 'italic');
			}
			else
			{
				setStyle("color", 0x000000);
				setStyle("fontStyle", 'normal');
			}
		}
	}
}
